/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.corespring.restaurant.service.impl;

import java.util.List;
import org.corespring.restaurant.dao.EventoDao;
import org.corespring.restaurant.model.Evento;
import org.corespring.restaurant.service.EventoManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author Aldo
 */

@Service
public class EventoManagerImpl implements EventoManager{

    @Autowired
    EventoDao eventodao;

    @Override
    public List<Evento> obtenerEventos() {
        return eventodao.obtenerEventos();
    }

    @Override
    public Evento obtenerEventoById(int sId) {
        return eventodao.obtenerEventoById(sId);
    }

    @Override
    public void grabarEvento(Evento objEvt) {
        eventodao.grabarEvento(objEvt);
    }

    @Override
    public void eliminarEvento(int sId) {
        eventodao.eliminarEvento(sId);
    }

}
